package com.zsl.swing.redis.desktop.utils;

import java.awt.*;

public class LocationUtils {

    private LocationUtils(){}

    public static void locateCenter(Component c, int width, int height){
        int x = (CommonUtils.maxWidth() - width)/2;
        int y = (CommonUtils.maxHeight() - height) / 2;

        c.setLocation(x,y);
    }
}
